home *** CD-ROM | disk | FTP | other *** search
/ Merciful 1 / Merciful - Disc 1.iso / software / a / asm_one / asm-onev1.25c.dms / in.adf / Release3.0 / Include3.0.lha / Include3.0 / dos / doshunks.i < prev    next >
Encoding:
Text File  |  1992-09-24  |  2.7 KB  |  92 lines

  1.     IFND    DOS_DOSHUNKS_I
  2. DOS_DOSHUNKS_I    SET    1
  3. **
  4. **    $VER: doshunks.i 36.11 (02.06.92)
  5. **    Includes Release 39.108
  6. **
  7. **    Hunk definitions for object and load modules.
  8. **
  9. **    (C) Copyright 1989-1992 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. **
  12.  
  13. * hunk types
  14.  
  15. HUNK_UNIT    EQU    999
  16. HUNK_NAME    EQU    1000
  17. HUNK_CODE    EQU    1001
  18. HUNK_DATA    EQU    1002
  19. HUNK_BSS    EQU    1003
  20. HUNK_RELOC32    EQU    1004
  21. HUNK_ABSRELOC32    EQU    HUNK_RELOC32
  22. HUNK_RELOC16    EQU    1005
  23. HUNK_RELRELOC16    EQU    HUNK_RELOC16
  24. HUNK_RELOC8    EQU    1006
  25. HUNK_RELRELOC8    EQU    HUNK_RELOC8
  26. HUNK_EXT    EQU    1007
  27. HUNK_SYMBOL    EQU    1008
  28. HUNK_DEBUG    EQU    1009
  29. HUNK_END    EQU    1010
  30. HUNK_HEADER    EQU    1011
  31.  
  32. HUNK_OVERLAY    EQU    1013
  33. HUNK_BREAK    EQU    1014
  34.  
  35. HUNK_DREL32    EQU    1015
  36. HUNK_DREL16    EQU    1016
  37. HUNK_DREL8    EQU    1017
  38.  
  39. HUNK_LIB    EQU    1018
  40. HUNK_INDEX    EQU    1019
  41.  
  42. * Note: V37 LoadSeg uses 1015 (HUNK_DREL32) by mistake.  This will continue
  43. * to be supported in future versions, since HUNK_DREL32 is illegal in load files
  44. * anyways.  Future versions will support both 1015 and 1020, though anything
  45. * that should be usable under V37 should use 1015.
  46. HUNK_RELOC32SHORT EQU    1020
  47.  
  48. * see ext_xxx below.  New for V39 (note that LoadSeg only handles RELRELOC32).
  49. HUNK_RELRELOC32    EQU    1021
  50. HUNK_ABSRELOC16    EQU    1022
  51.  
  52. *
  53. * Any hunks that have the HUNKB_ADVISORY bit set will be ignored if they
  54. * aren't understood.  When ignored, they're treated like HUNK_DEBUG hunks.
  55. * NOTE: this handling of HUNKB_ADVISORY started as of V39 dos.library!    If
  56. * lading such executables is attempted under <V39 dos, it will fail with a
  57. * bad hunk type.
  58. *
  59.     BITDEF    HUNK,ADVISORY,29
  60.     BITDEF    HUNK,CHIP,30
  61.     BITDEF    HUNK,FAST,31
  62.  
  63. * hunk_ext sub-types
  64.  
  65. EXT_SYMB    EQU    0    ; symbol table
  66. EXT_DEF        EQU    1    ; relocatable definition
  67. EXT_ABS        EQU    2    ; Absolute definition
  68. EXT_RES        EQU    3    ; no longer supported
  69. EXT_REF32    EQU    129    ; 32 bit absolute reference to symbol
  70. EXT_ABSREF32    EQU    EXT_REF32
  71. EXT_COMMON    EQU    130    ; 32 bit absolute reference to COMMON block
  72. EXT_ABSCOMMON    EQU    EXT_COMMON
  73. EXT_REF16    EQU    131    ; 16 bit PC-relative reference to symbol
  74. EXT_RELREF16    EQU    EXT_REF16
  75. EXT_REF8    EQU    132    ;  8 bit PC-relative reference to symbol
  76. EXT_RELREF8    EQU    EXT_REF8
  77. EXT_DEXT32    EQU    133    ; 32 bit data relative reference
  78. EXT_DEXT16    EQU    134    ; 16 bit data relative reference
  79. EXT_DEXT8    EQU    135    ;  8 bit data relative reference
  80.  
  81. * These are to support some of the '020 and up modes that are rarely used
  82. EXT_RELREF32    EQU    136    ; 32 bit PC-relative reference to symbol
  83. EXT_RELCOMMON    EQU    137    ; 32 bit PC-relative reference to COMMON block
  84.  
  85. * for completeness... All 680x0's support this
  86. EXT_ABSREF16    EQU    138    ; 16 bit absolute reference to symbol
  87.  
  88. * this only exists on '020's and above, in the (d8,An,Xn) address mode
  89. EXT_ABSREF8    EQU    139    ; 8 bit absolute reference to symbol
  90.  
  91.     ENDC    ; DOS_DOSHUNKS_I
  92.